

package ro.ase.catalog.security.dao;

import ro.ase.catalog.beans.Authority;
import ro.ase.catalog.dao.IGenericDAO;

import java.util.List;

public interface IAuthorityDAO extends IGenericDAO<Authority, Integer> {

    public List<Authority> findByType(String type);
    

    public Integer findByNameVagueCount(String name);
    

    public List<Authority> findByNameVaguePerPage(String name, int start, int limit);
    

    public List<Authority> findByRoleIdPerPage(int roleId, int start, int limit);   



    public List<Authority> findByRoleId(int roleId);   
    

    public Integer findByRoleIdCount(int roleId);

}
